home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / GRAPHICS / RAYTRACING / POVRAY3 / POV301 / povray3 / docsdemo / pov / meshdemo < prev    next >
Text File  |  1997-01-21  |  2KB  |  55 lines

  1. //
  2. // POV-Ray(tm) 3.0 tutorial example scene.
  3. // Copyright 1996 by the POV-Ray Team
  4. //
  5.  
  6. global_settings { assumed_gamma 2.2 }
  7.  
  8. camera {
  9.   location <20, 20, -50>
  10.   look_at <0, 5, 0>
  11. }
  12.  
  13. light_source { <50, 50, -50> color rgb<1, 1, 1> }
  14.  
  15. #declare Red = texture {
  16.   pigment { color rgb<0.8, 0.2, 0.2> }
  17.   finish { ambient 0.2 diffuse 0.5 }
  18. }
  19.  
  20. #declare Green = texture {
  21.   pigment { color rgb<0.2, 0.8, 0.2> }
  22.   finish { ambient 0.2 diffuse 0.5 }
  23. }
  24.  
  25. #declare Blue = texture {
  26.   pigment { color rgb<0.2, 0.2, 0.8> }
  27.   finish { ambient 0.2 diffuse 0.5 }
  28. }
  29.  
  30. mesh {
  31.   /* top side */
  32.   triangle { <-10, 10, -10>, <10, 10, -10>, <10, 10, 10> texture { Red } }
  33.   triangle { <-10, 10, -10>, <-10, 10, 10>, <10, 10, 10> texture { Red } }
  34.   /* bottom side */
  35.   triangle { <-10, -10, -10>, <10, -10, -10>, <10, -10, 10> }
  36.   triangle { <-10, -10, -10>, <-10, -10, 10>, <10, -10, 10> }
  37.   /* left side */
  38.   triangle { <-10, -10, -10>, <-10, -10, 10>, <-10, 10, 10> }
  39.   triangle { <-10, -10, -10>, <-10, 10, -10>, <-10, 10, 10> }
  40.   /* right side */
  41.   triangle { <10, -10, -10>, <10, -10, 10>, <10, 10, 10> texture { Green } }
  42.   triangle { <10, -10, -10>, <10, 10, -10>, <10, 10, 10> texture { Green } }
  43.   /* front side */
  44.   triangle { <-10, -10, -10>, <10, -10, -10>, <-10, 10, -10> texture { Blue } }
  45.   triangle { <-10, 10, -10>, <10, 10, -10>, <10, -10, -10> texture { Blue } }
  46.   /* back side */
  47.   triangle { <-10, -10, 10>, <10, -10, 10>, <-10, 10, 10> }
  48.   triangle { <-10, 10, 10>, <10, 10, 10>, <10, -10, 10> }
  49.   texture {
  50.     pigment { color rgb<0.9, 0.9, 0.9> }
  51.     finish { ambient 0.2 diffuse 0.7 }
  52.   }
  53. }
  54.  
  55.